_get_book_table=$(function() {
    Mock.mock('/get/book/table', 'post', (req, res) => {
        return {
            code:"1",
            total:"6",
            rows:[{
                b_id:"111",              			//书本id
                b_name:"xxxx",                    	//书本名
                author:"xxx",                  	//书本作者
                price:"1000",                    	//书本价格
                imageName:"../img/m007.jpg",               	//图片地址
                description:"xxxxxx",             	//书本描述
                c_id:"111",             	//所属目录id
                c_name:"xxxxx",
            },{
                b_id:"121",              			//书本id
                b_name:"xxxx",                    	//书本名
                author:"xxx",                  	//书本作者
                price:"1000",                    	//书本价格
                imageName:"../img/m007.jpg",               	//图片地址
                description:"xxxxxx",             	//书本描述
                c_id:"111",             	//所属目录id
                c_name:"xxxxx",
            },{
                b_id:"131",              			//书本id
                b_name:"xxxx",                    	//书本名
                author:"xxx",                  	//书本作者
                price:"1000",                    	//书本价格
                imageName:"../img/m007.jpg",               	//图片地址
                description:"xxxxxx",             	//书本描述
                c_id:"111",             	//所属目录id
                c_name:"xxxxx",
            },{
                b_id:"114",              			//书本id
                b_name:"xxxx",                    	//书本名
                author:"xxx",                  	//书本作者
                price:"1000",                    	//书本价格
                imageName:"../img/m007.jpg",               	//图片地址
                description:"xxxxxx",             	//书本描述
                c_id:"111",             	//所属目录id
                c_name:"xxxxx",
            },{
                b_id:"151",              			//书本id
                b_name:"xxxx",                    	//书本名
                author:"xxx",                  	//书本作者
                price:"1000",                    	//书本价格
                imageName:"../img/m007.jpg",               	//图片地址
                description:"xxxxxx",             	//书本描述
                c_id:"111",             	//所属目录id
                c_name:"xxxxx",
            },{
                b_id:"611",              			//书本id
                b_name:"xxxx",                    	//书本名
                author:"xxx",                  	//书本作者
                price:"1000",                    	//书本价格
                imageName:"../img/m007.jpg",               	//图片地址
                description:"xxxxxx",             	//书本描述
                c_id:"111",             	//所属目录id
                c_name:"xxxxx",
            },]
        }
    });
});

_add_order=$(function() {
    Mock.mock('/op/order/item', 'post', (req, res) => {
        console.log(req)
        return {
            code:"1",		//是否成功
        }
    });
});

_get_order_item_table = $(function() {
    Mock.mock('/get/order/item/table', 'post', (req, res) => {
        return {
            total:"1",
            rows:[{
                item_id:"33223",      				//请求详细条目id
                b_num:"1",    				//请求书本数量
                b_price:"10",    				//请求总价
                b_id:"111",    	 				//书本id
                i_price:"10",    				//请求总价
                b_name:"C++"				 	//书本名称
            },{
                item_id:"31223",      				//请求详细条目id
                b_num:"1",    				//请求书本数量
                b_price:"20",    				//请求总价
                b_id:"111",    	 				//书本id
                i_price:"20",    				//请求总价
                b_name:"C++"				 	//书本名称
            },{
                item_id:"13223",      				//请求详细条目id
                b_num:"1",    				//请求书本数量
                b_price:"30",    				//请求总价
                i_price:"30",    				//请求总价
                b_id:"111",    	 				//书本id
                b_name:"C++"				 	//书本名称
            },]
        }
    });
});

_delete_order_item=$(function() {
    Mock.mock('/delete/order/item', 'post', (req, res) => {
        console.log(req)
        return {
            code:"1",		//是否成功
        }
    });
});

_get_order_manage_table = $(function() {
    Mock.mock('/get/order/info/table', 'post', (req, res) => {
        console.log(req)
        return {
            total: "1",
            rows: [{
                orderId: "12345611111",
                info_num: "2",
                info_price: "12121",
                status: "2",
                user_id: "111",
                u_name: "张三"
            }]
        }
    });
});

_op_order_status=$(function() {
    Mock.mock('/op/order/status', 'post', (req, res) => {
        console.log(req);
        return {
            line: "1"
        }
    });
});